from django.urls import path
from .views import *

urlpatterns = [
    # 添加 获取全部学校
    path("principals/", PrincipalView.as_view({"post": "add_principal", "get": "list_principal"})),

    # 获取 修改  删除单个学校
    path("principal/<int:pk>/", PrincipalView.as_view({"get": "single_principal", "put": "up_principal", "delete": "del_principal"})),

    # 获取一个学校的所有班级
    path("school/<int:pk>/", PrincipalView.as_view({"get": "list_school"})),

]
